Objects Reference

particle::step

Prototype

int step(int dt)

Parameters

Parameter Type Description
dt int elapsed time in ms

Return Value

Returns TRUE is particle moved, FALSE if particle did not move.

Remarks

This function updates the particle for an specified elapsed time. The particle will be moved based according to its current velocity and the velocity will be updated using the current force and mass. If the collision flag is turned on, collision will be tested and the position and velocity will be changed based on collsion point, normal, bump, and friction factors.